package com.edu.admin.entity;


import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

import com.edu.admin.common.BaseEntity;

/**
 * 学段表实体
 * 
 * @author Wangjiong
 * 
 */
@Table(name = "sys_phase")
public class SysPhase extends BaseEntity{ 

	/**
	 * 
	 */
	private static final long serialVersionUID = -532920242082095101L;
	/**
	 * 学段id
	 * 
	 */
	@Id
	@GeneratedValue(generator = "JDBC")
	private Long phaseId;
	/**
	 * 学段名称
	 * 
	 */
	@NotBlank(message = "学段名称不能为空")
	private String phaseName;
	/**
	 * 学制
	 * 
	 */
	@Min(value= 1 ,message= "学制最少1年" ) 
	@Max(value= 100 ,message= "学制最多100年" ) 
	private Integer duration;
	/**
	 * 排序编号
	 * 
	 */
	@Min(value = 0, message = "排序编码大于0") 
	private Integer sortNum;
	
	public Long getPhaseId() {
		return phaseId;
	}

	public void setPhaseId(Long phaseId) {
		this.phaseId = phaseId;
	}

	public String getPhaseName() {
		return phaseName;
	}

	public void setPhaseName(String phaseName) {
		this.phaseName = phaseName;
	}

	public Integer getDuration() {
		return duration;
	}

	public void setDuration(Integer duration) {
		this.duration = duration;
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

	

}
